package com.nondo.rdp.auth.security.model;

/**
 * iskyshop_b2b2c
 *
 * @author linfeng@nondo
 * @since 2017/8/29.
 */
public class SecurityToken {

    private String token;
    private String refreshToken;
    private String algorithm;
    private String secret;
    private Integer expire;
    //附加其他返回字段
    private long userId;
    private String username;
    private String nickName;
    private String avatar;

    public SecurityToken(String token, String refreshToken, String algorithm, String secret, Integer expire) {
        this.token = token;
        this.refreshToken = refreshToken;
        this.algorithm = algorithm;
        this.secret = secret;
        this.expire = expire;
    }

    public String getToken() {
        return token;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public String getAlgorithm() {
        return algorithm;
    }

    public String getSecret() {
        return secret;
    }

    public Integer getExpire() {
        return expire;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
